package com.tomehay.termprojectmanage_server.controller;


import com.tomehay.termprojectmanage_server.pojo.DTO.LoginDto;
import com.tomehay.termprojectmanage_server.pojo.Model.Teacher;
import com.tomehay.termprojectmanage_server.pojo.VO.ResultVO;
import com.tomehay.termprojectmanage_server.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tomehay
 * @since 2023-06-20
 */
@RestController
@RequestMapping("api/teacher")
public class TeacherController {

    @Autowired
    TeacherService teacherService;
    @PostMapping("/login")
    public ResultVO<Teacher> login(@RequestBody LoginDto loginDto){ return teacherService.Login(loginDto); }
}
